<?php

//分类模型
namespace app\admin\common\model;

use think\Model;
class Cate extends Model
{
    protected $pk = 'id';//主键
    protected $table = 'zh_article_category';

    protected $autoWriteTimestamp = true;//自动时间戳
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $dateFormat = 'Y年/m月/d日';

    //开启自动设置
    protected $auto = [];//无论是新增还是更新都要设置的字段
    //仅新增的有效
    protected $insert = ['create_time','status'=>1];
    //仅更新时的设置
    protected $update = ['update_time'];
}